package edu.uob;

import java.io.*;

public class TabWriter {
    public static String write(String file, String content) {
        try (BufferedWriter writer = new BufferedWriter(new FileWriter(file, true))) {
            String tabContent = content.replace(",", "\t");
            writer.write(tabContent + "\n");
        } catch (IOException e) {
            System.err.println("[ERROR]: Failed to write data to " + file);
        }
        return "[OK]";
    }
}
